<!--
 * @Description  : 新增
 * @Author       : zhao
 * @Date         : 2022-07-25 14:20:49
 * @LastEditors  : zhao
 * @LastEditTime : 2022-08-01 16:37:14
-->
<template>
    <div class='add'>
        <el-button type="primary" size="default" @click="add()">新增</el-button>
    </div>
</template>

<script setup lang='ts'>
import { ref } from 'vue'
import { storeToRefs } from "pinia";
import { useTableInfo } from '/@/stores/ztable'
const user = useTableInfo()
let { zTableFunAddShow } = <any>storeToRefs(user);
const add = () => {
    user.zTableFunAddShow = true
    console.log("🚀 ~ file: add.vue ~ line 19 ~ user", user)
}
</script>
<style lang='scss' scoped>
</style>